import React, { ReactNode, lazy } from 'react';
import {BrowserRouter, Route, Routes} from 'react-router-dom';
import Adminlist from '../pages/Adminlist';
import Bookmanagement from '../pages/Bookmanagement';
import Borrowbooks from '../pages/Borrowbooks';
import Home from '../pages/Home';
import Login from '../pages/Login';
import Sort from '../pages/Sort';
import Userlist from '../pages/Userlist';

function Router1() {
	return (
		<BrowserRouter>
			<Routes>
				<Route path='/' element={<Login />} />
				<Route path='/login' element={<Login />} />
				<Route path='/home' element={<Home/>} />
				<Route path='/adminlist' element={<Adminlist/>} />
				<Route path='/userlist' element={<Userlist/>} />
				<Route path='/bookmanagement' element={<Bookmanagement/>} />
				<Route path='/sort' element={<Sort/>} />
				<Route path='/borrowbooks' element={<Borrowbooks/>} />
			</Routes>
		</BrowserRouter>
	);
}
export default Router1;


